package com.game.backend.mapper;

import com.game.backend.model.Bot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import java.util.Date;

@Mapper
public interface BotMapper {
    int add(@Param("userId") int userId,
            @Param("title") String title,
            @Param("description") String description,
            @Param("content") String content);

    Bot selectById(@Param("id") int id);

    int deleteById(@Param("id") int id);

    int update(@Param("id") int id,
               @Param("title") String title,
               @Param("description") String description,
               @Param("content") String content);

    List<Bot> getList(@Param("userId")int userId);
}
